package com.ruoyi.hatha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hatha.mapper.PBankCardMapper;
import com.ruoyi.hatha.domain.PBankCard;
import com.ruoyi.hatha.service.IPBankCardService;

/**
 * bankcardService业务层处理
 * 
 * @author hatha
 * @date 2024-03-08
 */
@Service
public class PBankCardServiceImpl implements IPBankCardService 
{
    @Autowired
    private PBankCardMapper pBankCardMapper;

    /**
     * 查询bankcard
     * 
     * @param cardId bankcard主键
     * @return bankcard
     */
    @Override
    public PBankCard selectPBankCardByCardId(String cardId)
    {
        return pBankCardMapper.selectPBankCardByCardId(cardId);
    }

    /**
     * 查询bankcard列表
     * 
     * @param pBankCard bankcard
     * @return bankcard
     */
    @Override
    public List<PBankCard> selectPBankCardList(PBankCard pBankCard)
    {
        return pBankCardMapper.selectPBankCardList(pBankCard);
    }

    /**
     * 新增bankcard
     * 
     * @param pBankCard bankcard
     * @return 结果
     */
    @Override
    public int insertPBankCard(PBankCard pBankCard)
    {
        return pBankCardMapper.insertPBankCard(pBankCard);
    }

    /**
     * 修改bankcard
     * 
     * @param pBankCard bankcard
     * @return 结果
     */
    @Override
    public int updatePBankCard(PBankCard pBankCard)
    {
        return pBankCardMapper.updatePBankCard(pBankCard);
    }

    /**
     * 批量删除bankcard
     * 
     * @param cardIds 需要删除的bankcard主键
     * @return 结果
     */
    @Override
    public int deletePBankCardByCardIds(String[] cardIds)
    {
        return pBankCardMapper.deletePBankCardByCardIds(cardIds);
    }

    /**
     * 删除bankcard信息
     * 
     * @param cardId bankcard主键
     * @return 结果
     */
    @Override
    public int deletePBankCardByCardId(String cardId)
    {
        return pBankCardMapper.deletePBankCardByCardId(cardId);
    }
}
